package com.xjh.t.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author satela
 * @since 2025-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_goods")
public class OrderGoods implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String belongOrderId;

    private Integer userId;

    private Integer goodsId;

    private String goodsName;

    private Integer belongSaler;

    /**
     * 确认时间
     */
    private Date confirmTime;

    /**
     * 确认订单时供货价格
     */
    private BigDecimal salerPrice;

    /**
     * 确认时售价
     */
    private BigDecimal sellPrice;

    private Integer sellWeight;

    private Integer offWeight;

    /**
     * 份数
     */
    private Integer goodsCount;

    /**
     * 差重
     */
    private Integer diffWeight;


    /**
     * 购买差价
     */
    private BigDecimal diffMoney;

    /**
     * 供应商差价
     */
    private BigDecimal diffSalerMoney;


    /**
     * 状态 0：未备货 1：正常备货  2：缺货 :3：已退货
     */
    private Integer state;

    /**
     * 是否已支付
     */

    private Integer hasPay;



}
